package com.handpay.nocardpay.baselibrary.qualificationinfo.model.bean;

import android.os.Parcel;
import android.os.Parcelable;

import com.handpay.nocardpay.baselibrary.commbase.model.bean.BaseResponseBean;

/**
 * Created by fplei on 2017/8/18.
 * 当前用户身份证转态
 * 照片状态：<br/>
 *      0 审核中；<br/>
        1 审核通过；<br/>
        2 审核失败；<br/>
 */

public class IDCardStatus extends BaseResponseBean implements Parcelable {
    /**
     * 审核通过
     **/
    public static final String STATIC_STATUC_SUCCESS = "00";
    /**
     * 未补件
     **/
    public static final String STATIC_STATUC_WAITE = "01";
    /**
     * 正在补件
     **/
    public static final String STATIC_STATUC_ING = "02";
    /**
     * 审核失败
     **/
    public static final String STATIC_STATUC_FAIL = "03";
    /**
     * 照片审核成功
     **/
    public static final String STATIC_PIC_STATUC_SUCCESS = "1";
    /**
     * 照片审核失败
     **/
    public static final String STATIC_PIC_STATUC_FAIL = "2";
    /**
     * 照片审核中
     **/
    public static final String STATIC_PIC_STATUC_ING = "0";
    //审核状态 00补件审核通过；01待补件；02补件审核中；03补件审核未通过；
    private String status;
    //审核未通过原因描述
    private String auditInfo;
    //姓名
    private String name;
    //身份证号
    private String certNo;
    //身份证正面照片
    private String frontCCPic;
    //身份证正面照片审核状态
    private int frontCCPicStatus = -1;
    //身份证反面照片
    private String backCCPic;
    //身份证反面照片审核状态
    private int backCCPicStatus = -1;
    //手持身份证照片
    private String holdPic;
    //手持身份证照片审核状态
    private int holdPicStatus = -1;

    public String getStatus() {
        return status;
    }

    public void setStatus(String status) {
        this.status = status;
    }

    public String getAuditInfo() {
        return auditInfo;
    }

    public void setAuditInfo(String auditInfo) {
        this.auditInfo = auditInfo;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getCertNo() {
        return certNo;
    }

    public void setCertNo(String certNo) {
        this.certNo = certNo;
    }

    public String getFrontCCPic() {
        return frontCCPic;
    }

    public void setFrontCCPic(String frontCCPic) {
        this.frontCCPic = frontCCPic;
    }

    public int getFrontCCPicStatus() {
        return frontCCPicStatus;
    }

    public void setFrontCCPicStatus(int frontCCPicStatus) {
        this.frontCCPicStatus = frontCCPicStatus;
    }

    public String getBackCCPic() {
        return backCCPic;
    }

    public void setBackCCPic(String backCCPic) {
        this.backCCPic = backCCPic;
    }

    public int getBackCCPicStatus() {
        return backCCPicStatus;
    }

    public void setBackCCPicStatus(int backCCPicStatus) {
        this.backCCPicStatus = backCCPicStatus;
    }

    public String getHoldPic() {
        return holdPic;
    }

    public void setHoldPic(String holdPic) {
        this.holdPic = holdPic;
    }

    public int getHoldPicStatus() {
        return holdPicStatus;
    }

    public void setHoldPicStatus(int holdPicStatus) {
        this.holdPicStatus = holdPicStatus;
    }


    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        super.writeToParcel(dest, flags);
        dest.writeString(this.status);
        dest.writeString(this.auditInfo);
        dest.writeString(this.name);
        dest.writeString(this.certNo);
        dest.writeString(this.frontCCPic);
        dest.writeInt(this.frontCCPicStatus);
        dest.writeString(this.backCCPic);
        dest.writeInt(this.backCCPicStatus);
        dest.writeString(this.holdPic);
        dest.writeInt(this.holdPicStatus);
    }

    public IDCardStatus() {
    }

    protected IDCardStatus(Parcel in) {
        super(in);
        this.status = in.readString();
        this.auditInfo = in.readString();
        this.name = in.readString();
        this.certNo = in.readString();
        this.frontCCPic = in.readString();
        this.frontCCPicStatus = in.readInt();
        this.backCCPic = in.readString();
        this.backCCPicStatus = in.readInt();
        this.holdPic = in.readString();
        this.holdPicStatus = in.readInt();
    }

    public static final Creator<IDCardStatus> CREATOR = new Creator<IDCardStatus>() {
        @Override
        public IDCardStatus createFromParcel(Parcel source) {
            return new IDCardStatus(source);
        }

        @Override
        public IDCardStatus[] newArray(int size) {
            return new IDCardStatus[size];
        }
    };

    @Override
    public String toString() {
        return "IDCardStatus{" +
                "status='" + status + '\'' +
                ", auditInfo='" + auditInfo + '\'' +
                ", name='" + name + '\'' +
                ", certNo='" + certNo + '\'' +
                ", frontCCPic='" + frontCCPic + '\'' +
                ", frontCCPicStatus=" + frontCCPicStatus +
                ", backCCPic='" + backCCPic + '\'' +
                ", backCCPicStatus=" + backCCPicStatus +
                ", holdPic='" + holdPic + '\'' +
                ", holdPicStatus=" + holdPicStatus +
                '}';
    }
}
